import { Injectable } from '@angular/core';

@Injectable({ providedIn: 'root' })
export class TransferDataService {
  private dataMap = new Map<string, any>();

  setDetails(id: string, data: any) {
    this.dataMap.set(id, data);
  }

  getDetails(id: string): any | undefined {
    return this.dataMap.get(id);
  }
} 